package com.lijin.service.impl;

import com.lijin.dataobject.entity.UserInfo;
import com.lijin.repository.UserInfoRepository;
import com.lijin.service.UserInfoService;
import javax.annotation.Resource;
import org.springframework.stereotype.Service;

/**
 * Created by gold-jx on 2017/6/5.
 */
@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Resource
    private UserInfoRepository userInfoRepository;

    @Override
    public UserInfo findByUsername(String username) {
        System.out.println("UserInfoServiceImpl.findByUsername()");
        return userInfoRepository.findByUsername(username);
    }

}
